package com.yf.construction.gather.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yf.construction.gather.dto.ConstructionGatherDTO;
import com.yf.construction.gather.entity.ConstructionGather;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface GatherConvert {

    GatherConvert INSTANCE = Mappers.getMapper(GatherConvert.class);

    ConstructionGatherDTO entityToDto(ConstructionGather entity);

    ConstructionGather dtoToEntity(ConstructionGatherDTO reqDTO);

    List<ConstructionGatherDTO> listEntityDto(List<ConstructionGather> list);

    Page<ConstructionGatherDTO> pageEntityDto(Page<ConstructionGather> page);
}
